package com.yyk.yiliao.bean;

import java.util.List;

/**
 * Created by ${zk} on 2018/8/21 0021.
 */

public class CartCartpay_Info {


    /**
     * code : 1
     * data : [{"sid":37,"sname":"北京动物园店铺","goodslist":[{"cartid":480,"uid":89,"sid":37,"oid":44,"money":11,"num":3,"name":"吃了不坏事123","sname":"北京动物园店铺","img":"/upload/drug/201808/15347661836874.png","price":null,"recipe":1}]}]
     * total : 33
     * address : {"id":47,"uid":89,"name":"测试数据","phone":"13910101010","province":2,"city":33,"county":378,"address":"大师傅","status":2,"province_name":"北京市","city_name":"市辖区","county_name":"东城区"}
     * msg : 操作成功
     */
    private int sub_type;  //自己添加了一个 判断是否 购物结算和重新下单

    public int getSub_type() {
        return sub_type;
    }

    @Override
    public String toString() {
        return "CartCartpay_Info{" +
                "sub_type=" + sub_type +
                ", code=" + code +
                ", total=" + total +
                ", address=" + address +
                ", msg='" + msg + '\'' +
                ", data=" + data +
                '}';
    }

    public void setSub_type(int sub_type) {
        this.sub_type = sub_type;
    }

    private int code;
    private float total;
    private AddressBean address;
    private String msg;
    private List<DataBean> data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public float getTotal() {
        return total;
    }

    public void setTotal(float total) {
        this.total = total;
    }

    public AddressBean getAddress() {
        return address;
    }

    public void setAddress(AddressBean address) {
        this.address = address;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class AddressBean {
        @Override
        public String toString() {
            return "AddressBean{" +
                    "id=" + id +
                    ", uid=" + uid +
                    ", name='" + name + '\'' +
                    ", phone='" + phone + '\'' +
                    ", province=" + province +
                    ", city=" + city +
                    ", county=" + county +
                    ", address='" + address + '\'' +
                    ", status=" + status +
                    ", province_name='" + province_name + '\'' +
                    ", city_name='" + city_name + '\'' +
                    ", county_name='" + county_name + '\'' +
                    '}';
        }

        /**
         * id : 47
         * uid : 89
         * name : 测试数据
         * phone : 13910101010
         * province : 2
         * city : 33
         * county : 378
         * address : 大师傅
         * status : 2
         * province_name : 北京市
         * city_name : 市辖区
         * county_name : 东城区
         */

        private int id;
        private int uid;
        private String name;
        private String phone;
        private int province;
        private int city;
        private int county;
        private String address;
        private int status;
        private String province_name;
        private String city_name;
        private String county_name;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getUid() {
            return uid;
        }

        public void setUid(int uid) {
            this.uid = uid;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public int getProvince() {
            return province;
        }

        public void setProvince(int province) {
            this.province = province;
        }

        public int getCity() {
            return city;
        }

        public void setCity(int city) {
            this.city = city;
        }

        public int getCounty() {
            return county;
        }

        public void setCounty(int county) {
            this.county = county;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public String getProvince_name() {
            return province_name;
        }

        public void setProvince_name(String province_name) {
            this.province_name = province_name;
        }

        public String getCity_name() {
            return city_name;
        }

        public void setCity_name(String city_name) {
            this.city_name = city_name;
        }

        public String getCounty_name() {
            return county_name;
        }

        public void setCounty_name(String county_name) {
            this.county_name = county_name;
        }
    }

    public static class DataBean {
        /**
         * sid : 37
         * sname : 北京动物园店铺
         * goodslist : [{"cartid":480,"uid":89,"sid":37,"oid":44,"money":11,"num":3,"name":"吃了不坏事123","sname":"北京动物园店铺","img":"/upload/drug/201808/15347661836874.png","price":null,"recipe":1}]
         */

        private int sid;
        private String sname;
        private List<GoodslistBean> goodslist;

        public int getSid() {
            return sid;
        }

        public void setSid(int sid) {
            this.sid = sid;
        }

        public String getSname() {
            return sname;
        }

        public void setSname(String sname) {
            this.sname = sname;
        }

        public List<GoodslistBean> getGoodslist() {
            return goodslist;
        }

        public void setGoodslist(List<GoodslistBean> goodslist) {
            this.goodslist = goodslist;
        }

        public static class GoodslistBean {
            /**
             * cartid : 480
             * uid : 89
             * sid : 37
             * oid : 44
             * money : 11
             * num : 3
             * name : 吃了不坏事123
             * sname : 北京动物园店铺
             * img : /upload/drug/201808/15347661836874.png
             * price : null
             * recipe : 1
             */

            private int cartid;
            private int uid;
            private int sid;
            private int oid;
            private float money;
            private int num;
            private String name;
            private String sname;
            private String img;
            private Object price;
            private int recipe;

            public int getCartid() {
                return cartid;
            }

            public void setCartid(int cartid) {
                this.cartid = cartid;
            }

            public int getUid() {
                return uid;
            }

            public void setUid(int uid) {
                this.uid = uid;
            }

            public int getSid() {
                return sid;
            }

            public void setSid(int sid) {
                this.sid = sid;
            }

            public int getOid() {
                return oid;
            }

            public void setOid(int oid) {
                this.oid = oid;
            }

            public float getMoney() {
                return money;
            }

            public void setMoney(float money) {
                this.money = money;
            }

            public int getNum() {
                return num;
            }

            public void setNum(int num) {
                this.num = num;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getSname() {
                return sname;
            }

            public void setSname(String sname) {
                this.sname = sname;
            }

            public String getImg() {
                return img;
            }

            public void setImg(String img) {
                this.img = img;
            }

            public Object getPrice() {
                return price;
            }

            public void setPrice(Object price) {
                this.price = price;
            }

            public int getRecipe() {
                return recipe;
            }

            public void setRecipe(int recipe) {
                this.recipe = recipe;
            }
        }
    }
}
